package com.chushouya.manager.dto.admin.store.admin;

import com.chushouya.manager.constants.StoreStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class StoreDetailDTO {

    private Long storeId;

    private String storeName;

    private String storePhoto;

    private String licensePhoto;

    private String storeRemark;

    private String contactUser;

    private String contactPhone;

    private Integer status;

    private Integer statusDesc;

    private String province;

    private String city;

    private String area;

    private String address;

    private Long adCode;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String commissionRules;

    private String auditRemark;

    private String handleUser;

    private Date createTime;

    @ApiModelProperty("关联的回收商ID")
    private Long merchantId;

    @ApiModelProperty("关联的回收商名称")
    private String merchantName;

    @ApiModelProperty("关联的代理商ID")
    private Long proxyId;

    @ApiModelProperty("关联的代理商名称")
    private String proxyName;

    public String getStatusDesc() {
        return StoreStatusEnum.getDesc(this.status);
    }

}
